<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="static:context" th:content="${context}"/>
    <title>QQ Avatar Cloud - Kayeah82 Product</title>

    <link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/4.1.3/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.css">
    <link rel="stylesheet" th:href="@{${assetsContext}+'/css/theme.css'}">

    <link rel="shortcut icon" href="https://www.kayeah82.com/favicon.ico"/>


    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="wrapper">
    <div class="content-wrapper">
        <div class="container">
            <div class="row">
                <div class="col-sm-12 col-md-10 offset-md-1 col-lg-8 offset-lg-2 col-xl-6 offset-xl-3 col-text-center">
                    <div class="card main-container text-center">
                        <div class="card-header">
                            <h5 class="font-weight-bold text-success">QQ Avatar Cloud API</h5>
                        </div>
                        <div class="card-body">
                            <form>
                                <div class="form-group">
                                    <input type="text" class="form-control" placeholder="Please input your QQ..." name="QQ">
                                </div>
                                <div class="form-group">
                                    <button type="button" class="btn btn-primary" id="generateApi">Generate API</button>
                                    <button type="button" class="btn btn-primary" id="previewAvatar">Preview Avatar</button>
                                </div>
                                <hr>
                                <div class="form-group text-left">
                                    <label for="apiGet" class="text-info">Get Avatar API</label><small class="text-primary ml-2">Avatar is available after embed the code below</small>
                                    <input type="text" class="form-control" placeholder="API..." value="API..." name="getApi" id="apiGet" readonly="readonly" th:value="${context+'get?qq=#QQ'}">
                                </div>
                                <div class="form-group text-left">
                                    <label for="apiUpdate" class="text-info">Update Avatar API</label><small class="text-primary ml-2">Call API below when you changed QQ avatar</small>
                                    <input type="text" class="form-control" placeholder="API..." value="API..." name="getApi" id="apiUpdate" readonly="readonly" th:value="${context+'update?qq=#QQ'}">
                                </div>
                                <hr>
                                <span class="text-muted">Copyright © kayeah82.com All Rights Reserved.</span>
                            </form>
                        </div>
                        <div class="d-none avatar-preview-template">
                            <div class="alert alert-info alert-dismissible">
                                <button type="button" class="close" data-dismiss="alert">&times;</button>
                                <img src="#" alt="avatar">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.js"></script>
<script th:src="@{${assetsContext}+'/js/utils.js'}"></script>
<script th:src="@{${assetsContext}+'/js/avatar.js'}"></script>
</body>
</html>